var thisDirection;
(function (thisDirection) {
    //! 箭头函数
    var MyClass = /** @class */ (function () {
        function MyClass() {
            this.name = "MyClases";
            // getName = () => {
            //     return this.name;
            // };
            this.getName = function () {
                console.log(this);
                return this.name;
            };
        }

        return MyClass;
    }());
    var cs = new MyClass();
    var obje = {
        name: "obj",
        getName: cs.getName,
    };
    // Prints "obj", not "MyClass"
    console.log(obje.getName());
})(thisDirection || (thisDirection = {}));


